package com.videoweb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.videoweb.entity.Video;
import com.videoweb.entity.dto.VideoItemDTO;
import com.videoweb.entity.dto.VideoUploadDTO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lmr
 * @since 2025-05-17
 */
public interface IVideoService extends IService<Video> {

//   上传视频

    public void uploadVideo(VideoUploadDTO dto);


    public List<Video> findVideo();


//  对视频的查询     根据 分类的的ID   标签的ID  用户的ID  视频的ID 收藏夹的ID
    public List<VideoItemDTO> findVideoItem();

//分页
    public List<VideoItemDTO> findVideoItemByPage(int pageNum, int pageSize);


    public List<VideoItemDTO> findVideoByCategoryId(Long categoryId);


    public List<VideoItemDTO> findVideoByTagID(Long tagId);


    public List<VideoItemDTO> findVideoByUserID(Long userId);

   public VideoItemDTO finVideoByVideoId(Long videoId);

   public List<VideoItemDTO> finVideoByFavoritesId(Long favoritesId);



//   对视频的状态进行更新：   0  1 2 3  0审核中  1 pass 2 block  3 review
    public int updateStatusByVideoId(Long videoId, Integer status);





}
